import Ember from 'ember';

export function modelNameFromRouteName(routeName) {
  var first = routeName.split('.')[0];
  return Ember.Inflector.inflector.singularize(first);
}

export function pluralModelNameFromRouteName(routeName) {
  return routeName.split('.')[0];
}
